package com.boruiimage.demo.mapperDao;

import com.boruiimage.demo.doMain.imgInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
@Mapper
public interface ImgInfomation {
    @Select("select * from  imginfo where userName=#{userName} ORDER BY date DESC")
    List<imgInfo> mb(@Param(value = "userName")String userName);

}
